package com.shangxia.basic.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2020-06-07 12:25:24
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class User extends Model<User> {
    
    private Long id;
    /**用户名*/
    private String userName;
    /**用户唯一编码*/
    private String userCode;
    /**密码*/
    private String password;
    /**部门*/
    private String department;
    /**部门编码*/
    private String departmentCode;
    /**状态*/
    private Object status;
    /**创建时间*/
    private Date createTime;
    /**更新时间*/
    private Date updateTime;
    /**权限等级(拥有对应的基本角色)*/
    private Integer privilegeLevel;
    /**身份证号*/
    private String identification;
    /**电话*/
    private String userTel;
    /**备注*/
    private String memo;
    /**头像*/
    private String userPicUrl;
    /**身份类型*/
    private Integer identityType;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
    }